FEATURE_OBJS = gen_feature.o feature.o spliter.o
VECTOR_OBJS	= gen_vector.o
CLUSTER_OBJS = cluster.o
CC = g++
OPT = -g
EXE = gen_feature gen_vector cluster

all: $(EXE)

cluster: $(CLUSTER_OBJS)
	$(CC) $(OPT) -o $@ $+
cluster.o: src/cluster.cpp
	$(CC) $(OPT) -c -o $@ $+ -I include 
gen_feature: $(FEATURE_OBJS)
	$(CC) $(OPT) -o $@ $+
gen_vector: $(VECTOR_OBJS)
	$(CC) $(OPT) -o $@ $+
gen_vector.o: src/gen_vector.cpp
	$(CC) $(OPT) -c -o $@ $+ -I include
gen_feature.o: src/gen_feature.cpp
	$(CC) $(OPT) -c -o $@ $+ -I include
feature.o: src/feature.cpp
	$(CC) $(OPT) -c -o $@ $+ -I include
spliter.o: src/spliter.cpp
	$(CC) $(OPT) -c -o $@ $+ -I include
.PHONY: clean
clean:
	rm *.o $(EXE) *.feature word/*.feature feature_vector
